package com.woniu.mapper;

import com.woniu.dto.RealTimeMonitoring.InitMapStationDTO;
import com.woniu.dto.RealTimeMonitoring.StationNameSearchResponseDTO;
import com.woniu.entity.ChargingStation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.woniu.entity.dto.RealTimeMonitoring.chargingManage.ChargingStationDTO;

import java.util.List;

import java.util.List;

/**
* @author Apricity
* @description 针对表【charging_station(充电站表)】的数据库操作Mapper
* @createDate 2025-02-13 20:16:58
* @Entity com.woniu.entity.ChargingStation
*/
@Mapper
public interface ChargingStationMapper extends BaseMapper<ChargingStation> {
    ChargingStation stationNameSearchTop1(String stationName);


    /**
    * 根据前端给的queryParam，模糊查询出所有的数据
    * */
    List<ChargingStationDTO> queryChargingStation(ChargingStationDTO chargingStationDTO);

    StationNameSearchResponseDTO selectChargersByStationId(Long stationId);

    ChargingStation stationChangeLastById(Long stationId);

    ChargingStation stationChangeNextById(Long stationId);

    List<InitMapStationDTO> selectInitMapStation();

    /**
    * 根据id删除的方法
    * */
    void batchDel(List<Integer> ids);

    List<ChargingStation> stationNameSearch(String stationName);

    List<InitMapStationDTO> stationNameSearchMap(String stationName);

}




